Fixed InputImage JavaScript