Compute middleMarker position from pixel (fix #4)