add preview on pictures & pdf