rename relatedImages to related; test counts