Graphing the inverse of a function given its graph