Added check to limit size of crop box