converted image to widget