actually managed to flip the condition. wonder how come it worked under windows then :-/
hopefully will work with windows with this change
without that the font is way smaller with portrait pictures i think that's not what the user wants