Well, as a first, crude, hack, it works partially

It will resize the image to the max width value, and only delivers the resized version (which is upscaled) resized via HTML to the actual file measurements, if i remove the statement.
If i just remove its contents and replace it with `$newh = $h; $neww=$w;`, it works like charm!
Thanks. Maybe you could make it an option in the next final version?
Btw: Is there a reason, i dont understand, that the watermark is in the bottom right corner (0,0 from bottom right) at the preview image, and at the botom right corner _plus_a_few_pixels_ (20,20 from bottom right) in the full image?