fix for linux.  added jpeg as default type.  Fixes #1  Fixes #2