fixed resize ima bug