using inverse matrices for getting mouse coordinates into the picture plane