proper resizing and letterboxing