Add new test gendata

Generates json and png images, and saves them at the newly introduced
test own data dir.

Signed-off-by: Cleber Rosa <crosa@redhat.com>