Photoshop TIFF: fix offset to first layer (rebased onto develop)



This is the same as gh-345 but rebased onto develop.

----

Fixes #10203.