updated load categories task to delete old photo