adding diagnosis to images/resources