Adapte canvas size to device size