A Novel Artificial Mosaic Generation Technique Driven by Local Gradient Analysis