Support close buttons on inline images