Image alt tags secure two purposes- firstly, they said the users who have trouble viewing the image rely on text-to-speech systems for searches, and secondly, they help the search engine read what the image is about, and hence they contribute to SEO. In short, optimizing the images with relevant keywords may rank those images and websites too.