This is a code to convert image representation of pixel to text format using its brightness