correct pixel data