fix drawImage, firefox element not ready