added maintype extension for jpeg