populate image attributes