A better way to crop images client-side using AngularJS