Moved image conversion script to separate file. Added .jpg in sources when converting images to .jpg.