A Method for Online Dose Prediction for Image Guided Proton Therapy