'The art of the selfie': UK gallery celebrates self-portraits through the ages