Source.add_white_image fails in developer version

Source.add_white_image(cub=cube_obj, size=5) runs without complaint, but then if Source.info is called the following error is thrown:

Traceback (most recent call last):
  File "/data2/straka/source_files/Q1317-0507/sourcefile_creation.py", line 84, in create_source
    s.info()
  File "/net/zandsloot/data2/straka/python/python_packages/lib64/python2.7/site-packages/mpdaf-1.3.dev1661-py2.7-linux-x86_64.egg/mpdaf/sdetect/source.py", line 609, in info
    ima.shape[0], ima.shape[1], data, noise, ima.wcs.get_rot())
UnboundLocalError: local variable 'data' referenced before assignment