fixing chart image dimensions