debug changes for images.js