Add image processing (crop, threshold)
Improve perfomance of cropImage