correct pixel space to x,y space mappings.