trying to fix error with image change