load preview image efficiently, issue #44