Added image counter