fixed bug in append_image_url