Fix Imagick bug when loading image from URL