Better preview handling. Start of image options parsing. Test harness.