add width&height attrs into <img> at first time