error loading square images

if image is square JImage::crop() will not receive the parameters and it will crash