Make pixel surface functions more readable and avoid usless conversion.