Pixel snapping for bitmaps