Fixes adaptiveScale

Fixes #539
Modified crop , scale to use cv2