The problem is likely to do with the line picMap = [[0] * width ] * height
yeah the problem was with that specific line. The snippet from your link worked by replacing the previous declaration by picMap = [[0] * 3 for x in xrange(height)] Thanks, -Sid -- http://mail.python.org/mailman/listinfo/python-list