Finished code for EntityItem rendering