The dimension of the image can't be modified from the JSON. You must pass in the dictionary the picture with the right dimension (315x365) if you don't want the image to be deformed. You can modify the image through the library PIL of Python. You can see here what I...