does the database column:
$row_WADAinventory["image"]
return only the image name? or does it also include the path?
if it only returns the name, you need to prepend the path in the file exists check:
file_exists("../images/".str_replace(".JPG",".jpg",$row_WADAinventory["image"]))