changed ImageData interface with type info
changed ImageData interface with type info