provide close icon, replace text with icon if image width is very small, close overlay on 'escape' keypress