Bug fix when image_file is nil