Added inverse lookup

Closes https://github.com/PistonDevelopers/graphics/issues/622
Merge pull request #623 from bvssvni/master

Added inverse lookup