def METHOD_NAME(self, parent, previousFile=None):
    """Create an image file dialog configured with a default path.
    :rtype: silx.gui.dialog.ImageFileDialog.ImageFileDialog
    """
    from silx.gui.dialog.ImageFileDialog import ImageFileDialog
    dialog = ImageFileDialog(parent)
    dialog.finished.connect(functools.partial(self.__saveDialogState, dialog))
    if hasattr(self, "getRawColormap"):
        colormap = self.getRawColormap()
        colormap = colormap.copy()
        colormap.setVRange(None, None)
        dialog.setColormap(colormap)
    self.__configureDialog(dialog)
    if previousFile is not None:
        dialog.selectUrl(previousFile)
    return dialog