Image compression using kraken