change order of script tasks
add imagemagick version check