add image_preview method