Add $item as an optional 4th parameter

This is how gallery_graphics.php does it, so the override should as well.