Fix drawImage param checking code
Small fixes
Make transform related API work like before, fixes #3