make widget resizeable
use tempfile module