mods for image processing on new branch