Image view error message

I’m getting this error message on an application that previously was working fine. It pulls image files off of a server and displays the metadata and the image.

The specified object is a property, not an element."

Here’s the code where the error happens:

set image of image view "imageDrop" of window "mainWin" to load image (POSIX path of newFilePath)
on error errMsg
log "Image view" & return & return & errMsg
end try
set myImage to image of image view "imageDrop" of window "mainWin"

the variable newFilePath is fine.

any idea what might be causing it?