Fix Image preview.

Add @mackenza pull request manually, Fixes #6.