fixed an uncaught error with pathName adding that had resulted in animation images not existing