Fix arc depth error, fix image reload memory leak