- created ImageWidgetClass to solve image quality degradation when
resizing.