Removed Wand dependencies and calls imagemagick via subprocess for better performance