create method to remove subview when image is changed