Fix the way images are set in headerbar buttons

This ensures that button-image class is set automatically