support auto detect iframe width and height

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>