mark: tidying up code - now writes out to a file with pixels removed
mark: adjusting the mahout code to take into account removed pixels