reducing canvas size