SaveComponentAsImage not working!

Hi,

I am trying to save a Vertical Arrangement Layout as an Image but It seems not working. Am I doing anything wrong? Please check.

Thank you.