Added a generic graphics.cpp to hold the definition of color_to_context

fixes issue where nothing but graphicsSDL could use color_to_context
but context DEFAULT was broken on all but SDL.