Implemented support for dynamic canvas scaling by persistent way