Changed setImage() function in Button class.