setting the image in center