Resize pictures' canvas