@RequestMapping(value = "images/{uniqueid}", method = RequestMethod.GET)
	public void getJson(@PathVariable String uniqueid,
			HttpServletResponse response, WebRequest request)
			throws IOException {
		File f = new File(IMAGE_FOLDER + File.separator + uniqueid + ".jpg");

		if (f.exists()) {
			if (request.checkNotModified(f.lastModified())) {
				response.sendError(HttpServletResponse.SC_NOT_MODIFIED);
				return;
			}
			response.setContentType("image/jpeg");
			long now = System.currentTimeMillis();
			// res being the HttpServletResponse of the request
			response.addHeader("Cache-Control", "max-age="
					+ CACHE_DURATION_IN_SECOND);
			response.setDateHeader("Last-Modified", f.lastModified());
			response.setDateHeader("Expires", now + CACHE_DURATION_IN_MS);
			response.addHeader("ETag", f.getName());
			InputStream is;
			try {
				is = new FileInputStream(f);
				byte[] buf = new byte[512];
				int bytesRead = is.read(buf);
				ServletOutputStream out = response.getOutputStream();
				while (bytesRead != -1) {
					out.write(buf, 0, bytesRead);
					bytesRead = is.read(buf);
				}
			} catch (FileNotFoundException e) {
				logger.warn("The requested image was not found - " + uniqueid
						+ ".jpg");
				e.printStackTrace();
			} catch (IOException e) {
				logger.error("Error writing image to response - " + uniqueid
						+ ".jpg");
				e.printStackTrace();
			}
		} else {
			response.sendError(HttpServletResponse.SC_NOT_FOUND);
		}
	}