DirectCanvas - renderloop and resize