Development and Implementation of Deep Learning Algorithms for Restoring Images Degraded by JPEG Compression