Adjust translation for size of image