fix "i" argument to graphics functions.

Also, they don't overwrite the default one, you can pass in nil to tpt.element/graphics_func for the function to restore the original.