- fix image tree bug and isolate dynamodb.py