changed IMAGE and add function readFile