Enbling a Border on an Image

So I used toBorder and a custom property, the mouse over and exit set the custom property to 1 and 0 respectively and then i used an expression binding to set the border.

if({Root Container.Image.borderStyle} = 1, toBorder(“bevel;1010”), toBorder(none))

Thanks for the help guys