Adversarial Perturbations: From Classification To Inverse Problems