Tweaked profile image positioning a little

Images with low width were causing the close button to position to the
right of the image, this way makes more sense
Automatically restore status after reconnection
Minor code style stuff
Merge pull request #217 from Tyroie/for-wreckedavent

For wreckedavent