Constructed JSON for image localization server and minor bug fixes