more fixes for working with (NxMx3) images
fixed bugs when config_on_frame is False