fixed a bug where the pixel rendering would still throw an array out of bounds... =(