auto populate displayed images
removed unnecessary javascript code
update number of items