Fix imagick issues

I was trying to use your library for my purposes, but using imagemagick instead of GD doesn't currently work properly. In this fork I've fixed some namespace issues for imagick, and also actually made it save a file if the png is created with imagick (previously it would never be saved).