Automatically run conversion when adding files.

This will fall appart if openCV is not installed. In this case
the current code will backtrace.
More error checking, and grouping only based on format.