private Bitmap ApplyFilters(Bitmap image) { if (image != null) { if (colorSwap) { image = image.ApplyRainbowFilter(); } if (blackAndWhite) { image = image.ApplySwapFilter(); } } return(image); }