Fixed a bug in setting compressed image directory