How to create a tag search filter for images?

Hey all,

I would like to create an option to filter images by tags.
I’m actually using gifs but its the same as images so i don’t think it matters.
the image shows what i’m going for exactly.

prominent tags will be visible and the user can search for other tags, hopefully with an auto complete mechanism but i think that is taking it a bit too far.

The engine will filter out the images and select only those with the tags chosen.

is there a way to achieve that?
Thank you for your help