Fix broken layout on image dialog after button font change. (#327)