modified photo adapter.