including S3 methof fortify.imagematrix and border detection.