The first release of the addon package for the phpGroupWare project includes an application which let you create graphical icons using gd and buttons using gd or ttf.