Document not saving all fields when transforming iamge