Fix barcode size to be an integer multiple of the native image size.

- Added assert to check that the size doesn't change without the css being
  updated.