Added support for preview images.