Optimizing images of your website will help you to get good rankings in search engines, however, one should make sure that the keywords used in the images are relevant to the image. Sometimes, users tend to keep wrong keywords for images which is certainly not good
Also, it is better to keep images where it is necessary to keep images, otherwise, it could be considered as a spam to promote content and website which can also affect the overall rankings and quality of website