WP-1575 A more generic way to handle setting preview icons in alter