Changed dialog to support color and depth