Dropdown menu change image

Hello, i’m trying to have a dropdown menu to change the image displayed on the site every time a choice is made.

For example I have a customized character that can have long or shirt hair and I want that every time the option is selected the image next to it changes to follows the choice.

Is it possible?

Thank you