fix images upload and model imagemagick institution