fix bug when adding url without image, preview was not generated