adding in image changing logic