Graphics System Improvements

Fixed up texture functions and added two missing ones and some includes.