Detection of Image Blur and Its Restoration for Image Enhancement