A comparative test of different compression methods applied to solar images