New generic class for Imagemagick conversions

I've been playing with the preview generator and, when using Imagemagick, it's always the same process, so I thought it would be best to have just one class which is extended