js, python - send image changes with json