Fix bug in Frame's as_PIL method