Minor style fixes
Add test for tms / jpeg