Added ROC analysis and compiled image processing into a single function