getting screenshots with method name