Improved preview, including images and automatically previewing small files (#738) See merge request !563