Fixed broken JS Image func.