Added common buffer and texture functions into Graphics