add template for post format image with data of image