update tools/update_img_db.py for data_direction