capturing screen shoot Dynamically