Added a pixToNDC function.