Updated toggle mode on image button