added a new sprite constructor