improve stability; convers png to jpg