TONY: Fix image loading on BE systems again

This was originally changed in commit 43520ce4f3, but it has been
removed accidentally in commit 84fb3e816d