malloc the pixel data