rename jpeg module
new tests & cleanup
get rid of compilation warnings
fix memory leaks