fixed the SNR_with_images function option