add fixedSize function for Image widget.