New reference point (centerof pixelGrid) and code optimization
minor bugfix
nothing special