bug fix for image size