put image ref back in