Use QMap instead of switch-statement to select color
Replace QQueue with QList for paint commands