Bug fix: Image dump/render additional arguments shifted

The following syntaxes were not working because of shifted arguments:
```
$img->dump('png',NULL,9,PNG_ALL_FILTERS);
$img->render('jpeg',NULL,50);
$img->render('jpeg',$target,50);
```