better logging for array out of bound while cropping, cropping parameter documentation