fixed bug in render.cpp and changed PixelType to pixel