handle input from other types than file or string correctly
(cherry-picked from cd0e1e8)
disable native libraries for JAI (and verbose error messages)
(cherry-picked from 8df658a)
do not access lazily created variable direct
(cherry-picked from 64b3b20)