add jpeg support