Added support for handling base64 images in imagemagick