Implemented basic FBO support. Extended Dim class.