adds canvas resizer