Removed the picture class/files.
Fixed a warning
Hide the bgl::cache functions and instead expose a Resource
class for better RAII.
Removed two warnings.