use item id for drawing

I think this fixes #6453