Use "SELECT DISTINCT" in the query to prevent repeats.
On line 7 instead of:
$searchrsImages_WADbSearch1->setSearch(array("type"=>"Edit", "comparison"=>"=", "join"=>"AND"), array("rel_images_home_id"), "d", "home");
use:
$searchrsImages_WADbSearch1->setSearch(array("type"=>"Edit", "comparison"=>"=", "join"=>"AND"), array("rel_images.home_id"), "d", "home");
That should fix your two issues.