add related codes of libnsgif/libnsbmp/libpng/libjpeg