The version of gd is 1.3-3, but contains a 1.2 library.
The "1.2" in /usr/lib/libgd.so.1.2 has nothing to do with the "1.3" in gd-1.3-3