Fix small image export. Closes #169.