possible division by zero in image widget