ImgCrop based on libcanvas