display image with index, save image with filename in chrome