Fixing "imageAntiAlias" error