fix delete uploaded photo