add pointer to graphics object