ensure the image should on the middle of screen