Add tests for Image::computeResize()

Tests created for the pull request contao/core#7296