Started the connected component part, added an error message for missing image