added: viewer dialog's dimension limited by main window dimensions and
img' orientation