}
ImageInfo imageInfo = new ImageInfo();
try {
FileInputStream fis = new FileInputStream(this.getAvatar());
imageInfo.setInput(fis);
if (imageInfo.check()) {
int width = imageInfo.getWidth();
int heigth = imageInfo.getHeight();
if (width != this.getImageWidth() || heigth != this.getImageHeight()) {
String[] args = new String[4];
args[0] = new Integer(this.getImageWidth()).toString();