reconstruction of image data managerment, create new class ImageData