Added check for ImageMagic and FFMPEG installation

Still uses generic pre-rendered thumbnail as fallback if one of the dependencies is missing
Also inb4 syntax or code errors. I uses the browser editor for this commit :')