fix for chrome new Image() bug