Proper scaling of image in canvas

Also fixed the odd display of the buttons on iOS