Lock image changing from locked to unlocked when clicked

Hiya all!
I am using Figma to mockup a prototype of some new functionality for my site developers. Is there a way to add an image of a lock and then have it unlock and re-lock, when clicked? Thanks!

Kind rgards,
Catherine.