almost finish imagemagick wrapper api and basic util