Acccessing Icons via Image Map

Hi all, I’m trying to write a script that pulls all icons used by statuses on our site, and writes them to a file. I’m having trouble generating those Icons for those whose display_type is image_map. I see Icons also have an image_map_key property, so I assume I can access the map with this?