Fixed issue with crop() and gravity