using data-attributes and javascript to change images