Use new device pixel ratio-aware Prison API
Also, we no longer need the dummy toImage() call workaround to get a valid barcode size.