Fixed bug in drawing images on canvas using chrome based browsers.