added image validtion to pin model