Changed to getResource.getPath