Resizes canvas before download