InitializeMagick moved to synchronous part of code