image2treee: Bugfix for certain scenarios