Adapted to changes with render buffer and quad class.
Removed obsolete Sprites class.