Detect whether an image has been upscaled and the original resolution.
For more information, see resdet on GitHub.