@Override
		protected Integer doInBackground() throws Exception {

			try {

				if (bi == null || sizeChanged) {
					File thumb = new File(realImgPath);
					if (thumb.exists()) {
						bi = ImageIO.read(thumb);
					}
					else {
						bi = ImageIO.read(new File(image.filepath + "\\" + image.filename));
						if (thumbSize > 0) {
							Thumbnails
									.of(bi)
									.size(thumbSize, thumbSize)
									.toFile(realImgPath);
							bi = ImageIO.read(thumb);
						}
					}

					sizeChanged = false;
				}

			} catch (IOException ex) {
				// TODO
				ex.printStackTrace();
			}
			return null;
		}