Fix Image.frombytes for older version of Python/PIL