Resize canvas to fit window size on iphone and android devices