Added checks for when adding textures/batches with prior existing ids