edited files.js to accept svg images