added thumbnail generation...should really work on tests...before generating code....next on the agenda