used pageX and pageY instead of x and y. removed scope.height check for crop zone