Convert global position global to local position
global
Offset globalToLocalPt(Offset global) => (global - imgOffset) * scaleRatio;