adding a graphic.js with the proper function call for all graphics