changed so that images are sorted by trap instead of date