quit image URLs, added debugging function