Add  as an optional 4th parameter, like in the original gallery_graphics.php. Needed for event hooks.