added image conversion functions
Merge branch 'master' of https://github.com/Schille/chapp