fix saving image via right click menu in state inspector

Data is not stored as QImage but as "base64" encoded data.