Added jpeg conversion