Cast dimension return values to int in order for _ImageCrop not to break