Added more comments and added functionality so that all Jpegs and Pngs can be uploaded and cropped. Not sure about gifs.