 					checkVRatio()
 
 		isNearBorders = (coords) ->
-			x = scope.xCropZone + imageAreaEl.offsetLeft
-			y = scope.yCropZone + imageAreaEl.offsetTop
+			offset = offset imageAreaEl
+			x = scope.xCropZone + offset.left
+			y = scope.yCropZone + offset.top
 			w = scope.widthCropZone
 			h = scope.heightCropZone
 			topLeft = { x: x, y: y }

		if scope.ratio and not scope.height
			scope.height = scope.destinationHeight
		scope.type ||= "png"

	template: """
		<div

			else draggingFn = moveCropZone
			draggingFn(e)
		scope.mouseup = (e) -> 
			draggingFn(e) if draggingFn
			draggingFn = null
		scope.mousemove = (e) ->
			draggingFn(e) if draggingFn
