support spaces in rgb and rgba color parsing
improve drawImage support by handling sx, sy, dw and dh
update compact version