Update since changes in phpgallery