Fix origin computation in exported image.