add php version using gd lib, add some comment in python version