Added check for orientation metadata