saveToPNG still does not catch every time the perfectly right position, but now it's more precise