Create imgs2base64.py

images in the directory encodes  to base64 and writes the result into file