Updated several functions after finding fix for ImageMagick I/O problems