Added index # to insert location label, so the image attributes get
passed along.