Move drawing-related stuff out of dogbone into graphics