resize image to suit the page better