fixed drawImage() bug in Chrome