So the dim in globals is not needed in such a situation?
The dim is only required when you want to access the view from your code.
It fails to load the image for some reason:
Caused by: java.lang.RuntimeException: Error loading bitmap.
at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize2(CanvasWrapper.java:521)
It works here correctly in rapid debug mode. Please try to change the image and see whether the same error occurs.
Also open the files folder and see whether the file name is lower cased or not (it should be).