Added cropping option

Added ability to crop image to smaller size before running the histogram instead of resizing to a potentially larger size