do_decode_resize unified with the help of implicit argument