Implement random forest model for multi-exposure image stacks (rftrain_imgx.py) and other minor changes