Insert image links in textarea by uploading them in popup