Fixes a bug when resizing failed

When there is no “resized” picture available, upstream throws an error
which didn’t get handled by the code, resulting in a broken image.

This commit fixes this by using the maximum size returned by the Graph
API as a fallback technique when upstream throws an error.