Added alert dialog with binarized image for testing purposes