Added ImageAdapter

Used to compress and decompress images.