automatically format images by image URL