bugfix attempt (PIL test added)