Fix image corruption in linux distribution