Adding an event handler for the orientation changing on a mobile device so that it performs the same action as when the window is resized. This will allow you to resize the canvas and image nicely when the mobile device rotates