Trying to get state image switching working