Resource manager now handles Texture2d instances as well.