Add jpeg upload support