using matrices for digital photos 8238631