fixed Post::get_sample_width/height