using dictionary for textures and buffers to delete