research on saving images
added tests and combined-opts