adding ->jpg format, only require relative-path when constructing from a config hash