Make charts use correct size before loading image