Changed counters so it keeps track of images and stuff.