Gets the index of the last pixel of the current context in the X direction.
In other words, this is get_width -1.
the index