properly count the image metadata