graphics engine

adding routines to share data of drawing elements