fixed a bug which caused images to disappear

also added functions to better determine whether imgur urls with no file
extension are albums or images and get the right thumbnail. this should
close #6