Fix for broken PDF images in /shared

(cherry picked from commit 9905db8655d226b73694f771d9b6e879b30961c6)