Correct syntax error in example

foreach ($image = $imlist->next()) is not valid php syntax.
Merge pull request #239 from Bittarman/patch-1

Correct syntax error in example