fixed .js to update .gif to .jpg upon modal close