replace image with canvas
add cross browser getStyle function