add php gd (graphics directly) support in ubuntu

#sudo apt-get install php5-gd

then, restart web service

#sudo service lighttpd restart //or
#sudo service apache2 restart