Use PHP 5.5 new GD function

Use PHP 5.5 new GD function