resource embedding library and tool