Canvas resizes and initial parameters generated