Error chekcing for getHighlightsForImage()