Update for PIL use tostring