fixed the changing image issue