improved save()

Now works correctly for all color types, not just RGBA.