ENYO-2782: Fixed file path issue in case of image file opened

Tested on OSX/Chrome-Canary, Win7/IE10 and Win7/Chrome.

Enyo-DCO-1.1-Signed-off-by: Yves Del Medico <yves.del-medico@hp.com>