fixing image counts