Fix index view images for files

getImage returns the file and not his associated image