add counter to image cycling