Fix building
More meaningful error messages in Image Dialog