fix fetch metadata,add fetch orientation

fix fetch metadata
add fetch orientation