added wrapper class, main only handles parameters now. i also added parameter, that only those thumbnails are written, where an edb entry exists