Add draw function to Entity.