now saving json data along images