Add option to extract part of the image.

Supports clipping to document bounds

This is ready to go, and is required by adobe-photoshop/generator-assets#315

This adds the options to calculate the area to extract if you want to clip to the document bounds (or any clipTo bounds you want to use)

Please merge to 15.2.2