corrected the image method