Well, you are adding those css classes for a reason, to change the appeareance of that item, on this case probably to denote a certain known filetype. So perhaps it would be easier to maintain if you assign to summaryImageClass something like Constants.CSSImageFileType (or what is relevant here) than adding a string with arbitrary sounding class names.