check dirctory is exist when resizing iamge