add icons and string to image function