detect total darkness of image