fix image vars