This "what image shall we show?" logic will show up in a few places. We might want to extract this for its own macro. Incidentally, that's how Les has it set up in django-badger.