A better way to implement this would probably be to use an options hash. E.g. options = {} as a last parameter and then get the options like center etc. from there. We also have a lot more options e.g. align: left etc. so that would be very feasible.