Use JPG as default for pictures. (Refactoring: get picture name + extension from DB)