Images can now be displayed in dialog, fixed 2 bugs in editor