Fix image exports in case of no image
Fix json_decode as array in export