more debug for image file creation