Approach based on union_images from Gamera's image_utilities plugin instead of using the Gamera classifier. Also some cleaning.

Signed-off-by: Gabriel Vigliensoni <gabriel@vigliensoni.com>