Yes, you can set a file type and submit a picture to use as an icon. When a file in that format is uploaded after that, the icon will be picked and displayed alongside the attachment.