Text this: Image restoration of one-dimensional inorganic compounds in single-walled carbon nanotubes