added the code to add .jpg