* Improved checking on out-of-bound points, reduced range to 1e4 pixels (should be engough).