Algorithm 6. Processing second image: embedding, encryption, and serialization.