Displaying media icon for images in directory listing