Restoring JPEGs