Synthetic Image Learning: Preserving Performance and Preventing Membership Inference Attacks