Fixed unimplemented transform method.
Added base class for graphics resources with some helper functions.