added minimagick
fixed controller bug