added the ability to change the image programatically