delete is_image(), add log for url
improve formatting
Merge pull request #2 from w268wang/wwang_beta

clean up the code