Added blocking image capture function.
Revert "Fixed an error in raspicam.cpp that I didn't fix earlier."

This reverts commit 81f64d44c22e988b3bed264fc9546a041279c47b.