Fixed npm test line
Added inverse function to perspective transform
Added unit tests for perspective transforms