restructuring images