Added the cropping front function to the back end
Improved the javascript cropping function