add jpg and pdf file, set image_url for real_url