AngularJS directive for cropping image similar to google plus cover photo