I've send a new pull request. My code is basically the same now, just the other way around.
pull: https://github.com/python-imaging/Pillow/pull/150
code: https://github.com/d-schmidt/Pillow/commit/09315f263bc69ae76340679c1f34e83591ab28c8