Fixed issues with pattern images.