Added an image counter