Cleanup object_basic

Move all the draw events to object_graphics where they belong and fix
casts in all graphics systems.