generate train-data as svmlight-format from stored images