Set canvas dimentions correctly