HTML5 Canvas Resizer and Cropper