Added code to center the image.