add canvas scaling