Move Rect and Point into core types, Some video functions