Preview and Crop Before Upload - use square crop-area
A sample demonstrates how to resize and crop an image with a square shape.