James O'Keefe, 23, had originally avoided prison but will now spend six months behind bars after failing to complete unpaid work.