Resize the image to fill screen when users rotate mobile device

Resize the image to fill screen when users rotate mobile device

Hi,
 
How do I resize the image to fit the phone screen when users rotate between portrait and landscape modes? I want the image width to be about 100% of the screen width and maintain the aspect ratio.
 
Thanks