Snap to pixel edge #1083

Correct pixel shift when clipping.