Added functions to save captured image

Signed-off-by: Jacky Boen <aqiank@gmail.com>