private boolean accepts(Resource resource, HttpServletRequest request) {
if(resource == null || request == null) {
return false;
}
final RequestPathInfo pathInfo = new PathInfo(request.getRequestURI());
final String suffix = getSuffix(request.getRequestURI());
final String extension = pathInfo.getExtension();
final String quick = parseSuffix(suffix, com.activecq.tools.quickimage.Constants.KEY_QUICK, 0, null);
if(StringUtils.isBlank(extension) ||
StringUtils.isBlank(suffix) ||
!ResourceUtil.isA(resource, JcrConstants.NT_FILE) ||