How to add drupal contributed modules into a custom module I've done a custom module to generate some forms. There is a image field present. I would like to add cropping functionality in image field.

I've seen that is very interesting the Imagefield Crop module. I would like to use it in my code. 

So, my question is: Is there any way to add this module functionality into my image field?

Edit 1:

This is my code:

$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...',
    );


It is necessary for our company to generate the forms in a custom module, because we need to process data in a special way, that with drupal content type is not possible. 

So, I feel totally lost. It is posible to do something like a reference or something similar to use image_crop??

Thank you in advanced.
If any module is providing its API, than you can use its api.Image Field Crop is not providing any API so you can call any method from that module directly. Don't forgot to add contributed module name  as a dependency in your custom module info file.