Added automatic preview image saving to screenshot functionality.