1. re-org json related code; 2. write json image