Running only on small image files. Small fixes to make the dictionary generation run.