Updated to PaintAPI and GuiAPI