Add function to map data to image
Add outImg
Update index_test.py to output json