bugfix: for some images gm identify -format %[exif:orientation] returns ...

...more than one line, e.g. '0\n0'. With this change we take only the first result. Currently exception is thrown. ValueError: invalid literal for int() with base 10: '0\\n0'