add draw function pointer to drawable