debug problem where 5 of each image were appearing on page