Add support for crop. Add -max_buffer_dimension flag.