write and read object, display image