added curve fitting methods to replay texture