added version API to get version of binded ImageMagick.
test maxMemory only on versions newer than 6.6