IMG_ROOTDIR paramter removed.

fix #530