Cleaning up json file. Adding support if no image exists