Fixed python image loading on Linux