JPG-mode works also for trell-version.
Committing with lots of debug stuff, will
clean up in next commit.