index switching images off aws server