Hello Yunti,
When you are mooning over someone (or in this case his photograph) it means you are spending/ wasting time on someone you are in love with or have feelings for instead of doing something else.
'Lover's procrastination' so to say.
I hope this helps.
Aleks