bug fix: fixed race condition where pic data would not be written, file would be created with 0 length and be requested resulting in pic with no data
added .wait() call to wait till subprocess termination

added some logging functionality with debugging in picSentry.