Camera snapping

Added pixel snapping behavior to the camera.