add some function

1 add get_gravity/set_gravity, set_option/get_option, scale and composite function.

2 fixed in the macx OS bugs that can't load imagemagick lib.