Addinig initial tests for imageproc and fixed 2 bugs on crop function