resized image to fit window