capturing pic successfully