daemon: initialize image_count properly