add compass sprite support, move lib to scripts