Removed some unused methods Added some fixes for different pixel structures in images.
- didn't work - added matrix inversion - does work