The imagesize checks are only done in the gravatar and remote avatar driver. Inside those checks the remote avatar does additional checks for the image type and extension. As this won't save much coding and is only used in 2 drivers I'd prefer not adding an extra function for image checking.