fixed photo delete and set delete