added code to detect imgur url