update graphics subsystem code to add mipmap support and also add initial GL texture stuff and helper functions