Implemented photo upload and replace.