Add some graphics functions