Updated photocast sample