CheckIsImage option

The js version of previous commit