Fix regression in toggleImageSheet magic

Change-Id: Iabdc26192edaa0c5683f37d17e55715c2c25fa3a