added function to fit an image to the screen