converter.js respect image orientation