Updated imagebutton code, added reference_id attribute to objects.