Remove the previous image when a new one is assigned