add preview image feature.