added letterbox resizing