fix for getting image file for nil obj