Enable raw data output

Raw data output is necessary for showing generated images inside the notebook. This little change adds this ability by simple virtual functions.