Make canvas size flexible