cleared gil's code
added ImageCompressionTester and added a function that normalizes an image of grayscale to -1:1