add api and preview image