fix saving image via right click menu in state inspector