Add  as an optional 4th parameter, like in the original gallery_graphics.php. Needed for event hooks.
Merge pull request #1 from mikeage/master

Add $item as an optional 4th parameter