Pass correct buffer sizes to readPixels

Take into account sizes of GL_FLOAT/GL_INT while calculating buffer sizes being passed to readPixels
I think it's the same for float as well - the array element size is 4, so it should all work out. Maybe I'm confused - @juj knows this stuff the best. He might be slow on email this week though.