bug fix to really use the image file