changed png to jpg
simplified and changed output to jpg