I think you need this here:

```
imageDataAddress = fb.evaluateObjectExpression('UIImagePNGRepresentation((id)' + commandForImage +')')
```

I was having trouble with certain commands if I didn't cast to `id`.