Added jpeg support.