fixed resized when no width-height in metadata (pdf case)