Pass registry instance for textures instead of using globals

Requires deathcap/inventory-window@b33956b6548f43976b32f07717f3198d4cb7f8e4