Changed figures from PDF to JPG