make encrpted image more compact