I\'m trying to work out img/canvas scaling but it\'s not working. I\'ve got an image, and I want to compress it, so I\'m using canvas to do this using the following code: