correction of translation, snapToPixel