decoder drawing