fix index and smaple iomage issues`