Buffering easier not to overwrite picture. And removed MAXINT