added resizing functionality to fbo class, fixed some other issues