adding resize fix for image.