Allows to wait for a given time (milliseconds) before doing the screenshot