add sprite, change definition of function in util/objects