Initialization and destruction of Imagemagick moved to special routines.