fixing autoresizing of images