fixing reading json for every picture