JSON returns correct values for resulting image. Fix #58.