modified to remove the 0.5 pixel shift
Merge branch 'snap-1.0.x' of https://github.com/arraydev/beam into snap-1.0.x
modified to remove the 0.5 pixel shift