I serialize images using the following code:
public static string SerializeImage(Image image) { using (MemoryStream memoryStream = new MemoryStream())