images.js updated for assigning size