fixed some XSS and added a function to the drawLibrary