I believe that's done based on user-agent header; but it shouldn't be surprising that the UA on a mobile browser is the hardest to change, showing once again that users' control of their computing devices is extremely important. With the appropriate UA, imgur will just give you the raw image data directly.