some refactoring #20

image options in $nmoptions, instead of sub-array $nmoptions['images']