integrate function and centered picture and add box