Make samples work when compiled with support for large images.