Add readDat

readDat function read img files from .dat format
trivial