removed redundant line from image widget