Compressing sample images so as to load them up easily on devices