fix image switcher flicker (I think)