change attribute to attributes to match change in ImageList.js