Added image generation from one pattern.