def rendered_project_image(template_name, project_name, image_name):
    project = Project.query.filter_by(name=project_name).first()
    image = Image.query.filter_by(projId=project.id, name=image_name).first()
    defaultCropSize = config.getint('common', 'patchsize', fallback=256)
    return render_template(template_name, project=project, image=image, defaultCropSize=defaultCropSize)
def rendered_project_image(template_name, project_name, image_name):
    project = Project.query.filter_by(name=project_name).first()
    image = Image.query.filter_by(projId=project.id, name=image_name).first()
    defaultCropSize = config.getint('common', 'patchsize', fallback=256)
    return render_template(template_name, project=project, image=image, defaultCropSize=defaultCropSize)