fromstring and tostring are depricated in pillow >= 2.0.