Graphics handler

Graphics handler release 1 (soon to be re released and refactored with better comments