Small adjustment to json creation

Turned image arrays into objects