coding and debugging ImageDatatsManager