Debugged and fully implemented setOrigin() sprite's function.