distortion fix

flattens image a bit. also fine tuned some constants