fix ImageFile optimized js issue, fixes CNVS-7024
fix ImageFile optimized js issue, fixes CNVS-7024

test plan:
1. run canvas with optimized js
2. anywhere ImageFile is used should work (e.g. plugin)
3. run canvas without optimized js
4. anywhere ImageFile is used should still work

Change-Id: Ie4150e581d7fbbc44014eb35f9a13c1cfe60b16c
Reviewed-on: https://gerrit.instructure.com/22549
Reviewed-by: Landon Wilkins <e219b0c23c4256074cdfc7a23138e4f17200b08f@instructure.com>
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Product-Review: Marc LeGendre <d33c80bc45d65303e33ca83108a9952b745af9ef@instructure.com>
QA-Review: Marc LeGendre <d33c80bc45d65303e33ca83108a9952b745af9ef@instructure.com>

sdeleon28/canvas-lms,HotChalk/canvas-lms,AndranikMarkosyan/lms,jay3126/canvas-lms,gbleydon/canvas-lms,Unow/canvas-lms,ShreniiNepal/shrenii_lmp,djbender/canvas-lms,skmezanul/canvas-lms,juoni/canvas-lms,Jyaasa/canvas-lms,skmezanul/canvas-lms,usmschuck/canvas,whalejasmine/canvas-lms,juoni/canvas-lms,landonwilkins/canvas-lms,Rvor/canvas-lms,landonwilkins/canvas-lms,jay3126/canvas-lms,arrivu/jigsaw-lms,Jyaasa/canvas-lms,wye0220/shindig-canvas,djbender/canvas-lms,djbender/canvas-lms,utkarshx/canvas-lms,HotChalk/canvas-lms,antoniuslin/canvas-lms,loganrun/pincan,fronteerio/canvas-lms,narigone/canvas,sfu/canvas-lms,roxolan/canvas-lms,merichar/canvas-lms,HotChalk/canvas-lms,wimemx/Canvas,arrivu/jigsaw-lms,sfu/canvas-lms,leftplusrightllc/canvas-lms,usmschuck/canvas,venturehive/canvas-lms,greyhwndz/canvas-lms,antoniuslin/canvas-lms,skmezanul/canvas-lms,Unow/canvas-lms,venturehive/canvas-lms,roxolan/canvas-lms,arrivu/arrivu-lms,Unow/canvas-lms,sfu/canvas-lms,snehakachroo1/LSI_replica,matematikk-mooc/canvas-lms,redconfetti/canvas-lms,usmschuck/canvas,arrivu/hoodemo,HotChalk/canvas-lms,wrdsb/canvas-lms,wimemx/Canvas,wrdsb/canvas-lms,sdeleon28/canvas-lms,tgroshon/canvas-lms,va7map/canvas-lms,dgynn/canvas-lms,arrivu/hoodemo,tgroshon/canvas-lms,grahamb/canvas-lms,greyhwndz/canvas-lms,loganrun/pincan,instructure/canvas-lms,venturehive/canvas-lms,wye0220/shindig-canvas,arrivu/jigsaw-lms,SwinburneOnline/canvas-lms,whalejasmine/canvas-lms,greyhwndz/canvas-lms,djbender/canvas-lms,eCNAP/CANVAS,wrdsb/canvas-lms,snehakachroo1/LSI_replica,instructure/canvas-lms,samuels410/greatlakes-lms,instructure/canvas-lms,shidao-fm/canvas-lms,matematikk-mooc/canvas-lms,gbleydon/canvas-lms,kyroskoh/canvas-lms,antoniuslin/canvas-lms,sfu/canvas-lms,efrj/canvas-lms,va7map/canvas-lms,grahamb/canvas-lms,gbleydon/canvas-lms,fronteerio/canvas-lms,AndranikMarkosyan/lms,Jyaasa/canvas-lms,jay3126/canvas-lms,va7map/canvas-lms,whalejasmine/canvas-lms,snehakachroo1/LSI_replica,instructure/canvas-lms,arrivu/hoodemo,wrdsb/canvas-lms,juoni/canvas-lms,utkarshx/canvas-lms,landonwilkins/canvas-lms,narigone/canvas,roxolan/canvas-lms,samuels410/greatlakes-lms,leftplusrightllc/canvas-lms,narigone/canvas,SwinburneOnline/canvas-lms,venturehive/canvas-lms,arrivu/arrivu-lms,matematikk-mooc/canvas-lms,arrivu/qibla-ecampus,efrj/canvas-lms,sdeleon28/canvas-lms,arrivu/qibla-ecampus,juoni/canvas-lms,ShreniiNepal/shrenii_lmp,dgynn/canvas-lms,instructure/canvas-lms,kyroskoh/canvas-lms,leftplusrightllc/canvas-lms,arrivu/arrivu-lms,samuels410/greatlakes-lms,ShreniiNepal/shrenii_lmp,sfu/canvas-lms,sfu/canvas-lms,eCNAP/CANVAS,merichar/canvas-lms,eCNAP/CANVAS,efrj/canvas-lms,snehakachroo1/LSI_replica,utkarshx/canvas-lms,redconfetti/canvas-lms,dgynn/canvas-lms,merichar/canvas-lms,shidao-fm/canvas-lms,fronteerio/canvas-lms,efrj/canvas-lms,instructure/canvas-lms,eCNAP/CANVAS,samuels410/greatlakes-lms,grahamb/canvas-lms,grahamb/canvas-lms,jay3126/canvas-lms,arrivu/qibla-ecampus,dgynn/canvas-lms,greyhwndz/canvas-lms,SwinburneOnline/canvas-lms,kyroskoh/canvas-lms,Jyaasa/canvas-lms,landonwilkins/canvas-lms,Rvor/canvas-lms,utkarshx/canvas-lms,va7map/canvas-lms,redconfetti/canvas-lms,roxolan/canvas-lms,whalejasmine/canvas-lms,kyroskoh/canvas-lms,leftplusrightllc/canvas-lms,narigone/canvas,wye0220/shindig-canvas,shidao-fm/canvas-lms,skmezanul/canvas-lms,tgroshon/canvas-lms,Rvor/canvas-lms,loganrun/pincan,wimemx/Canvas,AndranikMarkosyan/lms,usmschuck/canvas,shidao-fm/canvas-lms,antoniuslin/canvas-lms,Rvor/canvas-lms,AndranikMarkosyan/lms,fronteerio/canvas-lms,matematikk-mooc/canvas-lms,redconfetti/canvas-lms,ShreniiNepal/shrenii_lmp,tgroshon/canvas-lms,sdeleon28/canvas-lms,grahamb/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,SwinburneOnline/canvas-lms