Added picture saving mechanism