widget class was sometimes storing 2 images