Added a bunch of optimizations (autocontrast, page centering)