update minify method , copy image auto