changed to PointF(0, 0) instead of null check