Changed to support JPG instead of PNG