Cast dimension return values to int in order for _ImageCrop not to break
Merge branch 'feature/issue22' into develop