Fix scaling problem with 2D barcodes.