Now using stride as a parameter when uploading pixels