better imgur url parsing