MADS: Refactoring of dialog classes, more implementation of PictureDialog