Minor updates to image / file js

Signed-off-by: Elliot Condon <e@elliotcondon.com>