@imageCallback: added converting and sto jpg