Refactored to get MemoryStream instead of file name