Put the image loader in images.js
Fixed the generator for images.js