Add cropping option to an image form I've the next form.

$form['imagen'] = array(
        '#title' =&gt; t('Image'),
        '#type' =&gt; 'managed_file',
        '#upload_validators' =&gt; array('file_validate_extensions' =&gt; array('jpeg jpg png gif')),
        '#upload_location' =&gt; 'public://',
        '#progress_indicator' =&gt; 'throbber',
        '#status' =&gt; FILE_STATUS_PERMANENT,
        '#progress_message' =&gt; 'One moment while we save your file...',
    ); 


That generates something like this:



What I need is to give the user the option to see the image that he has upload, and resize the image. The functionality that I need, is the same that the ImageField_crop module gives. 

I'm totally lost. I don't know how to add this functionality to the form.
It's totally necessary for the project to insert this form in a custom module, because I have a multistep form.

Does anybody know how to do this??

Thank you very much.
Better you can go with implementing the field with "imagefield_crop" module instead of doing customization further.