added overscan compensation through an optional #define