auto save jpegs from stream