Resize images based on orientation and screen size