ho provato a togliere
codice:
f._imagePath.value=!""
e non mi dà nessun errore.

ma rimane il dubbio...