Initial work on legend drawing