Added setImageName functionality

I think this is right. Would love some feedback on this.