Well do you want metadata.orientation = {
rotation:
mirrored:
flag:
}

?