Fix bug in size function. Add :size option.