bug fix for image