fix chart options
move images to top level
fix updateChart call