Refactored to move qpixmap generation from file_format to widget_viewer_2d.
Refactored to move outputs into logs. Added some outputs also.