adjust images to fit into the screen