Structure aware image repair as an image structure completion and shape recognition problem and its application to shadow removal /