Image restoration or upscaling with super-resolution, image restoration via denoising, and JPEG artifact reduction