converted  minipages to figures