try catch delete picture