f you're going to use widths in pixels, do remember that the default target-resolution for PDF is 72dpi, which may or may not match the resolution of your image. Recalculating the px-widths into something more absolute is recommended for predictable results.