Added clearCanvas function to fix Firefox bug, it is still not perfect but I assume is related with cache memory and Ol3