Bugfix: do not remove a running agent's socket.

My previous check-in introduced a bug. Starting another login shell caused the
removal of the agent socket file. Now the sock file handling is only executed
if the agent is not already running, as intended.
Resize an image, using imagemagick convert.

This is a little helper that allows me to quickly downscale an image, usually
for attaching it to an email.