fixed detect for crop sizes