What stylistic technique is used in the following lines from Hard Times, by Charles Dickens?

...like the head of an elephant in a state of melancholy

allusion
connotation
metaphor
simile