IssueID #29 : implement image capture function