change canvas size to animation size params