Fix “Assigning directly to this.state” warning in react 16
Fix “Assigning directly to this.state” warning in react 16

Test plan:
*Go to course settings page
* click the link to upload a new course image:
* search Flickr
* it should work and not log:
Warning: FlickrSearch.componentWillMount(): Assigning directly to 
this.state is  deprecated (except inside a component's constructor). 
Use setState instead.

Change-Id: Ide331d7ea20b60c079fe914d345aca5bc07e1032
Reviewed-on: https://gerrit.instructure.com/165946
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <9dff2e5c98626d20d2848250c411e8009465bb87@instructure.com>
Product-Review: Ryan Shaw <ea3cd978650417470535f3a4725b6b5042a6ab59@instructure.com>
QA-Review: Ryan Shaw <ea3cd978650417470535f3a4725b6b5042a6ab59@instructure.com>

sfu/canvas-lms,djbender/canvas-lms,djbender/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,djbender/canvas-lms,instructure/canvas-lms,instructure/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,sfu/canvas-lms