sync link image with database