first step: capturing images