Implemented resize; switched from gm to imagemagick-native.