'Used by s3_avatar_represent()'

@staticmethod
def pr_image_size(image_name, size):

    db = current.db
    table = db.pr_image_library
    image = db((table.new_name == image_name)).select(table.actual_height, table.actual_width, limitby=(0, 1)).first()
    if image:
        return (image.actual_width, image.actual_height)
    else:
        return size
