Update index.js

fix path for generated image