Set FBO size to 512x512 when framebuffer changed