Preview and Crop Before Upload - use rectangle crop-area

A sample demonstrates how to resize and crop an image with a rectangular shape.