Fix export of images, sort order, ...
This refs #4837