Split graphics operations off into their own source file.