Image icons suitable for use will already exist in your images/media folder. The files reflect the logo for the recommended program used to open the media, so for csv media types which open in excel, you can copy and rename the xlsicon.gif that already exists; for RTF or docx files, use the wordicon.gif in the same way.