make graphic figure serializable, transfer figure instead of image, enable refresh in rapaio-studio