Fixed bug with image change