add thumbnail model

add thumbnail ar model
add thumbnail_spec tests