added function for putting figure in bootstrap panel