Fix imageData field in typescript

Fix imageData field in typescript.

Tested manually to verify that this matches what freedom is passing to signal handler functions.