use fullfile for ctfPname
use xlswrite in windows
file number limit is set to be 10,000 for windows
use rgb channels to represent a gray scale image, change "gray" to "gray123"