putting the image back correctly