fix ami(prewimg)