Changed the image centering logic