use `tempfile` module for embedding images, instead of random names