Added warnings and loop continue-s for images with too large ROIs