fix image shaking issue