fixed bug in imagebuffer
did stuff