canvas size as attributes