fix url generating in select image widget