added new picture matrix class