add "resize aspect" & fix unittest