refactored sprite methods, updated example