changing around photo upload method