add jpeg two save way