Add view photo modal logic