@dhanya : for debugging purpose, we need to add log code for critical errors:
<pre>
    if (error) {
      DDLogError(@"Failed to create image dir: %@", [error description]);
    } else {
      DDLogInfo(@"Succeeded to create image dir.");
    }
</pre>