Add scaling logic

It looks like the best bet will be inserting the whole input frame, then scaling it down.