Image detection in Quark 4

Does anyone know of a way to detect an image in a picture box in Quark 4? I wan’t to be able to auto import images, but not if one already exists in the picture box.