well omegatron, I got the code from their, but didn't work for "popular" case. so I told myself maybe its better if I post here and get the correct value for Most popular case.
most_views case shows the most view photo, not the most popular, the rating is different.
thank you