bugfixes: when user picture doesn't have an extension and when permalink url is a dict