skipping image dir in apidoc if it does not exist