Implemented PNG predictor, and plethora little fixes