fix a bug of not properly importing a image