added dynamic canvas resize/reorientate support.