Adds error checking to imgur uploads