Methods changed to const where appropriate in chartimg