turning index images into thumbnails