fix the bug of create image