combine to the one script
fix undefined variables
add screenshots.png