log images
clean up regex to handle nsid