Adds image scaling and rotation to QR decoder. Optimizes some output