Update image min code