A new imaging proportional counter using a Penning gas improves energy resolution