added canvas size stuff forgot min