Fixed pixel access when scaling.