fix image dialog