make scale and border handling more robust
allow to change error correction level at runtime