Added rescaling of animatied gifs and added a few customization options

Rescaling of animated gifs does need an external call to the 'convert' program suppied by imagemagick, so I have a variable which allows this to be turned off for users who do not want this.

Users can now set images to be scaled to a fixed size, and animation for gifs does not loop forever, but by 2 minutes as default.