Simplify image-crop code and reformat documentation. #261