improve fbo selection and shadow mapping