added globalToLocal, use stage size when not in scene