Trying to get state image switching working again