Code updated for pics

JPG extension needed to change in code not pic