Adds tests for image size compilation.