Fix URL patching (after actually testing it).
And provide fallback for image resizing (.thumbnail in PIL 2.3.0 is broken).