Improved file path handling of images
Improved error handling of missing images
Added optional drawing of debug info per layer