Now redraws the barcode when the attribute value (code) is changed.