fix image element to work