Make window resize to fit image. Make window display data during __init__