changed parameter practical uses images to jpg.