fix for Chrome's new Image() bug