Change the way how gifs are downloaded

Previously, the db entry was made before the gif was actually
downloaded. This could lead to some problems, when the gif could not be
correctly downloaded afterwards. We rather want gifs that are not
indexed, than indexed gifs that are not even physically there.
Add hook for new method `saveMetaData`
1.4.0