An Image cropper in javascript