Add detect main image from metas.